package com.aspose.cells;

class zbkf extends zck {
   zbkf(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   void b() {
      float var1 = this.c;
      float var2 = this.d;
      float var3 = this.e.v().h();
      float var4 = this.e.v().i();
      com.aspose.cells.b.a.b.a.zf var5 = this.a.e();
      this.a.a(4);
      new com.aspose.cells.b.a.b.zq(var1, var2, var3, var4);
      com.aspose.cells.b.a.b.zm var7 = zbum.a(this.e.x());
      float var8 = 0.0F;
      float var9 = 0.0F;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var8 = var4 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 209999.98F;
            if (var8 == 0.0F) {
               var8 = 0.1F;
            }

            var9 = var4 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(1)) / 100000.0F;
         } else {
            var8 = var4 / 35.0F;
            var9 = 3.0F * var4 / 6.0F;
         }
      } else {
         var8 = var4 / 35.0F;
         var9 = 3.0F * var4 / 6.0F;
      }

      var8 = Math.abs(var8);
      var9 = Math.abs(var9);
      com.aspose.cells.b.a.b.a.ze var10;
      com.aspose.cells.b.a.b.zc var11;
      switch(this.e.b) {
      case 1:
      case 2:
         if (!this.e.w().a()) {
            var10 = new com.aspose.cells.b.a.b.a.ze();
            var10.a(var1 - var3 / 2.0F, var2, var3, 2.0F * var8, 270.0F, 90.0F);
            var10.b(var1 + var3 / 2.0F, var2 + var8, var1 + var3 / 2.0F, var2 + var9 - var8);
            var10.a(var1 + var3 / 2.0F, var2 + var9 - 2.0F * var8, var3, 2.0F * var8, 180.0F, -90.0F);
            var10.a(var1 + var3 / 2.0F, var2 + var9, var3, 2.0F * var8, 270.0F, -90.0F);
            var10.b(var1 + var3 / 2.0F, var2 + var9 + var8, var1 + var3 / 2.0F, var2 + var4 - var8);
            var10.a(var1 - var3 / 2.0F, var2 + var4 - 2.0F * var8, var3, 2.0F * var8, 0.0F, 90.0F);
            var10.i();
            var11 = zbum.a(this.e.w(), var10);
            this.a.a(var11, var10);
         }

         if (!this.e.x().a()) {
            this.a.a(var7, var1 - var3 / 2.0F, var2, var3, 2.0F * var8, 270.0F, 90.0F);
            this.a.a(var7, var1 + var3 / 2.0F, var2 + var9 - 2.0F * var8, var3, 2.0F * var8, 180.0F, -90.0F);
            this.a.a(var7, var1 + var3 / 2.0F, var2 + var9, var3, 2.0F * var8, 270.0F, -90.0F);
            this.a.a(var7, var1 - var3 / 2.0F, var2 + var4 - 2.0F * var8, var3, 2.0F * var8, 0.0F, 90.0F);
            this.a.b(var7, var1 + var3 / 2.0F, var2 + var8, var1 + var3 / 2.0F, var2 + var9 - var8);
            this.a.b(var7, var1 + var3 / 2.0F, var2 + var9 + var8, var1 + var3 / 2.0F, var2 + var4 - var8);
         }
         break;
      case 3:
      case 4:
         if (!this.e.w().a()) {
            var10 = new com.aspose.cells.b.a.b.a.ze();
            var10.a(var1 + var3 / 2.0F, var2, var3, 2.0F * var8, 270.0F, -90.0F);
            var10.b(var1 + var3 / 2.0F, var2 + var8, var1 + var3 / 2.0F, var2 + var9 - var8);
            var10.a(var1 - var3 / 2.0F, var2 + var9 - 2.0F * var8, var3, 2.0F * var8, 0.0F, 90.0F);
            var10.a(var1 - var3 / 2.0F, var2 + var9, var3, 2.0F * var8, 270.0F, 90.0F);
            var10.b(var1 + var3 / 2.0F, var2 + var9 + var8, var1 + var3 / 2.0F, var2 + var4 - var8);
            var10.a(var1 + var3 / 2.0F, var2 + var4 - 2.0F * var8, var3, 2.0F * var8, 180.0F, -90.0F);
            var10.i();
            var11 = zbum.a(this.e.w(), var10);
            this.a.a(var11, var10);
         }

         if (!this.e.x().a()) {
            this.a.a(var7, var1 + var3 / 2.0F, var2, var3, 2.0F * var8, 270.0F, -90.0F);
            this.a.a(var7, var1 - var3 / 2.0F, var2 + var9 - 2.0F * var8, var3, 2.0F * var8, 0.0F, 90.0F);
            this.a.a(var7, var1 - var3 / 2.0F, var2 + var9, var3, 2.0F * var8, 270.0F, 90.0F);
            this.a.a(var7, var1 + var3 / 2.0F, var2 + var4 - 2.0F * var8, var3, 2.0F * var8, 180.0F, -90.0F);
            this.a.b(var7, var1 + var3 / 2.0F, var2 + var8, var1 + var3 / 2.0F, var2 + var9 - var8);
            this.a.b(var7, var1 + var3 / 2.0F, var2 + var9 + var8, var1 + var3 / 2.0F, var2 + var4 - var8);
         }
      }

      super.a();
      this.a.a(var5);
   }
}
